<?php
/**
 * Created by PhpStorm.
 * User: hehecat
 * Date: 2018/7/10
 * Time: 13:24
 */

namespace app\api\model;


use think\Model;

class PictureModel extends Model
{
    function reply($userid, $pictureid, $content) {
        $data = ['userid'=>$userid, 'pictureid' => $pictureid, 'content' => $content];
        $result = Db::name('reply')->insertGetId($data);
        return ['id'=>$result];
    }
}